<template>
  <div>
    <ul>
      <li v-for="(item, index) in arr" :key="index">{{ item }}</li>
      <button @click="go">走一走</button>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: ["帅哥", "美女", "程序猿"],
    };
  },
  methods: {
    go() {
      const frist = this.arr.shift();
      this.arr.push(frist);
    },
  },
};
</script>

<style></style>
